namespace CRM.DataAccess.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class INVOICE_DETAIL
    {
        [Key]
        [Column(Order = 0)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long InvoiceID { get; set; }

        [StringLength(50)]
        public string STATUS_NAME { get; set; }

        public long? OrgID { get; set; }

        public long? CONTACT_ID { get; set; }

        [StringLength(100)]
        public string ORGANIZATION_NAME { get; set; }

        [StringLength(301)]
        public string ASSIGN_TO { get; set; }

        public double? TOTAL_PRICE { get; set; }

        public long? STATUS_ID { get; set; }

        public long? ASSIGN_TO_ID { get; set; }

        [StringLength(50)]
        public string INVOICE_NUMBER { get; set; }

        [StringLength(201)]
        public string CONTACT_NAME { get; set; }

        [StringLength(250)]
        public string CUSTOMER_NO { get; set; }

        public DateTime? INVOICE_DATE { get; set; }

        public DateTime? DUE_DATE { get; set; }

        [StringLength(100)]
        public string PURCHASE_ORDER { get; set; }

        public double? SALES_COMMISSION { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(250)]
        public string OFFICE_ADDRESS { get; set; }

        [Key]
        [Column(Order = 2)]
        [StringLength(250)]
        public string HOME_ADDRESS { get; set; }

        [StringLength(250)]
        public string OFFICE_PO_BOX { get; set; }

        [StringLength(250)]
        public string HOME_PO_BOX { get; set; }

        [StringLength(250)]
        public string OFFICE_CITY { get; set; }

        [StringLength(250)]
        public string HOME_CITY { get; set; }

        [StringLength(250)]
        public string OFFICE_STATE { get; set; }

        [StringLength(250)]
        public string HOME_STATE { get; set; }

        [StringLength(250)]
        public string OFFICE_POSTAL_CODE { get; set; }

        [StringLength(250)]
        public string HOME_POSTAL_CODE { get; set; }

        [StringLength(250)]
        public string OFFICE_COUNTRY { get; set; }

        [StringLength(250)]
        public string HOME_COUNTRY { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime DATE_CREATED { get; set; }

        public long? ITEM_ID { get; set; }

        [StringLength(25)]
        public string PHONE_MOBILE { get; set; }

        public long? TERMS_CONDITIONS_ID { get; set; }

        public long? DESCRIPTION_ID { get; set; }

        public bool? SAVED_STATE { get; set; }
    }
}
